package com.xyzwps.server.paimon.model.entity

import com.xyzwps.server.paimon.value.UserId
import kotlin.time.Instant

data class Article(
    val id: Long? = null,
    val uid: String, // TODO: 调整 Uid 生成规则
    val userId: UserId,
    val title: String,
    val content: String,
    val createdAt: Instant
) {
    companion object {
        const val UID_MAX_LENGTH = 255
        const val TITLE_MIN_LENGTH = 2
        const val TITLE_MAX_LENGTH = 255
    }
}
